package com.company.OfferGuide;

public class 打印从1到最大的n位数 {

    public int[] printNumbers(int n) {
        if (n == 0) return new int[]{};
        int[] ints = new int[(int) Math.pow(10, n) - 1];
        for (int i = 1; i < ints.length + 1; i++) {
            ints[i - 1] = i;
        }

        return ints;
    }

}
